package io.jft.doll.api

import com.g.base.api.BaseResult
import com.google.gson.JsonObject
import io.jft.doll.room.entity.common.RoomCEntity
import io.jft.doll.room.entity.remote.ChannelREntity
import io.jft.doll.room.entity.remote.RoomGameRankRecentREntity
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * Created by G on 2017/11/29 0029.
 */
interface RoomApi {
    /**频道列表**/
    @POST("channel/channelList")
    fun getChannelList(@Body jsonObject: JsonObject): Observable<BaseResult<ArrayList<ChannelREntity>?>>

    /**房间列表**/
    @POST("room/roomList")
    fun getRoomList(@Body jsonObject: JsonObject): Observable<BaseResult<List<RoomCEntity>?>>

    /**房间详情**/
    @POST("room/roomDetail")
    fun getRoomDetail(@Body jsonObject: JsonObject): Observable<BaseResult<RoomCEntity?>>

    /**娃娃详情**/
    @POST("wawa/roomDetails")
    fun getDollDetail(@Body jsonObject: JsonObject): Observable<BaseResult<String?>>

    /**房间最近抓中记录**/
    @POST("wawa/wawaLog")
    fun getRoomGameHistory(@Body jsonObject: JsonObject): Observable<BaseResult<List<RoomGameRankRecentREntity>?>>

    /**抓娃娃达人**/
    @POST("wawa/wawaMaster")
    fun getRoomDollMaster(@Body jsonObject: JsonObject): Observable<BaseResult<List<RoomGameRankRecentREntity>?>>
}